<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Mauro
 * Date: 6/07/11
 * Time: 11:10
 */
require_once 'CMS/CMS.class.php';

class generalModuleCMS extends CMS {
    private $view;
    
    function __construct($view = null) {
        if(!is_null($view))
        {
            parent::__construct($view);
            $this->view = $view;

            $this->assign('languages',$this->getLanguages());
        }
	}

    private function getLanguages() {
        $languages = Doctrine::getTable('Languages')->findAll();
        return $languages;
    }
}
